import request from '@/utils/request'

// 查询列表
export function listpart(query) {
  return request({
    url: '/outPut/part/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getpart(partId) {
  return request({
    url: '/outPut/part/' + partId,
    method: 'get'
  })
}



// 修改
export function updatepart(data) {
  return request({
    url: '/outPut/part',
    method: 'put',
    data: data
  })
}


// 删除
export function delpart(partIds) {
  return request({
    url: '/outPut/part/' + partIds,
    method: 'delete'
  })
}
// 备件总额
export function totalAmount() {
  return request({
    url: '/outPut/part/totalAmount',
    method: 'get'
  })
}
// 备件总数
export function totalCount() {
  return request({
    url: '/outPut/part/totalCount',
    method: 'get'
  })
}
// 备件缺口
export function totalGap() {
  return request({
    url: '/outPut/part/totalGap',
    method: 'get'
  })
}
// 备件缺口总额
export function totalGapAmount() {
  return request({
    url: '/outPut/part/totalGapAmount',
    method: 'get'
  })
}